.profilePage {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 80px;
  position: relative;
}

/* 顶部状态栏 - 吸顶 */
.statusBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f8f9fa;
  height: 32px;
  z-index: 1001;
  font-size: 12px;
  color: #666;
}

.time {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.statusIcons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.signalIcon,
.wifiIcon,
.batteryIcon {
  font-size: 14px;
  color: #666;
}

/* 应用标题栏 - 吸顶 */
.appHeader {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.appTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
  flex: 1;
}

.headerActions {
  display: flex;
  gap: 12px;
}

.actionBtn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.actionBtn:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

/* 用户信息区域 - 为顶部固定元素预留空间 */
.userProfile {
  margin-top: 88px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatarPlaceholder {
  display: none;
  font-size: 32px;
  color: #1976d2;
}

.userInfo {
  flex: 1;
}

.username {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}

.familyManagement {
  font-size: 14px;
  color: #1976d2;
  cursor: pointer;
  transition: color 0.2s;
}

.familyManagement:hover {
  color: #1565c0;
}

/* 主要用户信息卡片 */
.mainCard {
  margin: 16px;
  background: #1976d2;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.cardContent {
  flex: 1;
}

.userName {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.registrationNo {
  font-size: 14px;
  opacity: 0.9;
}

.qrCode {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.qrCode:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.qrIcon {
  font-size: 20px;
  color: white;
  position: relative;
}

/* 添加二维码图案效果 */
.qrCode::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 2px;
}

.qrCode::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 2px;
}

/* 区域标题 */
.section {
  margin: 16px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

/* 服务网格 */
.serviceGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

/* 诊疗记录 - 4列宫格布局 */
.section:first-of-type .serviceGrid {
  grid-template-columns: repeat(4, 1fr);
}

/* 服务设置 - 4列布局 */
.section:last-of-type .serviceGrid {
  grid-template-columns: repeat(4, 1fr);
}

.serviceItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.serviceItem:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.serviceIcon {
  width: 48px;
  height: 48px;
  background: #e3f2fd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1976d2;
}

.serviceText {
  font-size: 12px;
  color: #666;
  text-align: center;
  line-height: 1.2;
}

/* 底部导航栏 - 固定定位，可点击 */
.bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #f0f0f0;
  display: flex;
  padding: 8px 0;
  z-index: 1000;
}

.navItem {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.navItem:hover {
  background: #f8f9fa;
}

.navItem.active {
  color: #1976d2;
}

.navIcon {
  font-size: 20px;
}

.navText {
  font-size: 12px;
  color: inherit;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .serviceGrid {
    gap: 12px;
  }
  
  .serviceItem {
    padding: 12px 6px;
  }
  
  .serviceIcon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .serviceText {
    font-size: 11px;
  }
}

@media (max-width: 320px) {
  .mainCard {
    margin: 12px;
    padding: 16px;
  }
  
  .section {
    margin: 12px;
    padding: 16px;
  }
  
  .serviceGrid {
    gap: 8px;
  }
}
